package com.cq.school.repository;

import com.cq.school.entity.Apply;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created with IntelliJ IDEA.
 * User:oa3158
 * Date: 13-12-12
 * Time: 上午11:03
 * To change this template use File | Settings | File Templates.
 */
public interface ApplyDao extends PagingAndSortingRepository<Apply, Long>, JpaSpecificationExecutor<Apply> {
    Page<Apply> findBySchoolId(long schoolId, Pageable pageRequest);
}
